"use strict";
window.onload = function() {
    location.href = "eleme://";
    var version = "v1.2.6";
    var e = window.navigator.userAgent,
    i = "",
    n = (new UParams).from;
    if (/iphone|iPad/i.test(e)) return void(location.href = "http://itunes.apple.com/cn/app/id1244983473?mt=8");
    if (/Android/i.test(e)) return void document.write('\n <div>下载应用请点击右上角按钮<br/>选择［在浏览器中打开］</div>\n      </div>\n    ');
    if (!/iPhone|iPad/.test(navigator.userAgent)) return void(location.href = "http://jgbzy.conac.cn/app/hysd_"+version+".apk");
    i = "http://itunes.apple.com/cn/app/id1244983473?mt=8";
    var o = new XMLHttpRequest;
    o.open("POST", location.origin.replace(/h\./, "mainsite-restapi.") + "/ugc/download/channels/ios"),
    o.withCredentials = !0;
    var t = {
        source: n || "",
        is_web: !0
    };
    o.onload = o.onerror = function() {
        i && (location.href = i)
    },
    o.send(JSON.stringify(t))
};